'use strict';

const Controller = require('egg').Controller;

class SearchController extends Controller {
  async index() {
    const { ctx } = this;
    var {keyword} = ctx.query
    const res = await ctx.service.movie.getMovieDetailOrSearch({keyword:keyword})
        ctx.body={
            msg:"电影详情",
            res
        }
  }
}

module.exports = SearchController;
